package net.lookyou.boot.demo.service;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class TestService {


    public void sayHi(){
        log.trace("trace信息 sayHi");
        log.debug("debug信息 sayHi");
        log.warn("warn信息 sayHi");
        log.info("info信息 sayHi");
        log.error("error信息 sayHi");
    }

    public void test() throws Exception{
       int a = 10 / 0;
    }
}
